<g:set var="ctx" value="${request.getContextPath()}" />
<script type="text/javascript" src="${ctx}/js/total.js" />